//
//  ONSettingsTableViewCell.m
//  Volatix
//
//  Created by Anh Tran on 6/5/14.
//  Copyright (c) 2014 Familly. All rights reserved.
//

#import "ONSettingsTableViewCell.h"

@implementation ONSettingsTableViewCell

- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)loadCellData:(ONISOObjects*)ISOObject
{
    self.titleLabel.text=ISOObject.name;
    switch (ISOObject.type) {
        case LEVEL_ISO:
            ///
            _detailLabel.text =@"iso";
            break;
        case LEVEL_LOADZONE:
            ///
              _detailLabel.text =@"loadzone";
            break;
        case LEVEL_POWERPOINT:
            ///
              _detailLabel.text =@"powerpoint";
            break;
            
        default:
            break;
    }
    

}
- (void)loadCellDataAlert:(ONObjectAlert *)_obj
{
    self.titleLabel.text=_obj.symbleName;
    switch (_obj.Type) {
        case -1:
            ///
            _detailLabel.text =@"nonsetting";
            break;
        case 0:
            ///
            _detailLabel.text =@"realtime";
            break;
        case 1:
            ///
            _detailLabel.text =@"dayahead";
            break;
            
        default:
            break;
    }
    
    
}
- (IBAction)checkButtonPressed:(id)sender {
}

@end
